import React from 'react'

//商品列表
export async function apiGetGoodsList(params) {
    return await React.$post('/admin/goodsInfo/goodsList', params);
}

// 查询sku
export async function apiGetGoodsDetail(params) {
    return await React.$post('/admin/goodsInfo/getGoodsDetail', params);
}
//分页查询
export async function apiPage(params) {
    return await React.$post('/admin/marketingCutprice/page', params);
}
// 上架-下架
export async function apiDisplay(params) {
    return await React.$post('/admin/marketingCutprice/display', params);
}
// 删除
export async function apiDel(params) {
    return await React.$post('/admin/marketingCutprice/del', params);
}
// 查看
export async function apiView(params) {
    return await React.$post('/admin/marketingCutprice/view', params);
}

// 修改信息
export async function apiEdit(params) {
    return await React.$post('/admin/marketingCutprice/edit', params);
}

// 增加
export async function apiAdd(params) {
    return await React.$post('/admin/marketingCutprice/add', params);
}
// 获取所有
export async function apiList(params) {
    return await React.$post('/admin/marketingCutprice/list', params);
}
// 砍价参与用户列表
export async function apiMarketingCutpriceRefPage(params) {
    return await React.$post('/admin/marketingCutpriceRef/page', params);
}
// 砍价活动帮砍人列表 
export async function apiHelpCutpriceRecordPage(params) {
    return await React.$post('/admin/helpCutpriceRecord/page', params);
}
// 导出限时砍价列表
export async function apiExportCutpriceOrder(params) {
    return await React.$post('/admin/marketingCutprice/exportCutpriceOrder', params);
}
// 砍价黑名单分页查询
export async function apiMarketingCutpriceBlacklistPage(params) {
    return await React.$post('/admin/marketingCutpriceBlacklist/page', params);
}
// 加入/移除黑名单
export async function apiAddCutPriceBlacklist(params) {
    return await React.$post('/admin/marketingCutpriceBlacklist/addCutPriceBlacklist', params);
}
// 查看砍价难度配置
export async function apiGetConfigPlatformSet(params) {
    return await React.$post('/admin/configPlatformSet/getConfigPlatformSet', params);
}
// 修改砍价难度配置
export async function apiGetConfigPlatformSetEdit(params) {
    return await React.$post('/admin/configPlatformSet/edit', params);
}



// 秒杀活动分页
export async function apiSeckillActivityPage(params) {
    return await React.$post('/market/api/seckillActivity/page', params);
}

// 秒杀活动新增
export async function apiSeckillActivityAdd(params) {
    return await React.$postJson('/market/api/seckillActivity/add/Json', params);
}

// 秒杀活动编辑
export async function apiSeckillActivityEdit(params) {
    return await React.$postJson('/market/api/seckillActivity/edit/Json', params);
}
// 秒杀活动详情查询
export async function apiSeckillActivityDetail(params) {
    return await React.$post('/market/api/seckillActivity/detail', params);
}
// 提前结束秒杀
export async function apiSeckillActivityFinish(params) {
    return await React.$post('/market/api/seckillActivity/finish', params);
}

// 提前结束秒杀
export async function apiGoodsStockInfo(params) {
    return await React.$post('/admin/goodsInfo/goodsStockInfo', params);
}

// 秒杀活动保存验证
export async function apiSeckillActivitySkuFloorPriceVerify(params) {
    return await React.$postJson('/market/api/seckillActivity/activitySkuFloorPriceVerify/Json', params);
}
